<?php
/* @var $this MeetgiveController */

$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'活动促销'=>array($this->pre_module_url.'/promotion/admin'),
	'套餐管理'=>array($this->pre_module_url.'/package/admin'),
);
?>


<div class="pro_filter c_f">
	<div class="filter f_l">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'CmpPromotion-form',
			'method'=>'get',
			'enableAjaxValidation'=>false,
		)); ?>
			<label class="mr20">状态：</label>
			<?php echo $form->dropDownList($model,'zpp_status',$model->getZppStatus(),array('class'=>'s_ipt w_120 '))?>
			<label class="">公司名称：</label>
			<?php echo $form->textField($model,'company_name',array('class'=>'t_ipt w_250'))?>
			<?php echo CHtml::submitButton(Yii::t('adm','Search'),array('class'=>'mem_bgx mem_btn01'))?>
		<?php $this->endWidget(); ?>
	</div>
</div>

<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<th width="" class="pl15">套餐标题</th>
		<th width="16%">套餐价格</th>
		<th width="16%">店铺名称</th>
		<th width="16%">状态</th>
		<th width="16%">活动时间</th> 
		<th width="15%">操作</th>                                                    
	</tr>
</table>

<?php   
$this->widget('zii.widgets.CListView', array(  
    'dataProvider'=>$model->search(),  
    'itemView'=>'_view',    
    'emptyText'=>'暂时没有数据',  
    'selectAll'=>array('ids[]','id[]'),  
	'htmlOptions'=>array('class'=>'list-view promotion_box '),
	'itemsTagName'=>'table',
	'itemsOptions'=>array('class'=>'list_table list_table2','width'=>'100%','cellpadding'=>0,'cellspacing'=>0),
    'artLink'=>array(  
      	//批量删除 
        array(Yii::t('adm','Delete All'),$this->pre_module_url.'/package/delete','确认上架选中产品！'),  
    ),  
  /*  'batchItem'=>array(  
        //移动到分类  
        $add_drop,  
        //添加到分类  
        $remove_drop,  
    ),  */
    ));  
?>  

<script type="text/javascript">
$('.view').bind('mouseover',function(){
	$(this).next('.box').addClass('hover');
});
$('.view').bind('mouseout',function(){
	$(this).next('.box').removeClass('hover');
});
</script>
